package chapter4.No4_1_使用reentrantLock类.demo12;

/**
 * getWaitQueueLength(Condition condition)：
 *    返回等待与此锁定相关的给定条件Condition的线程估计数，简单的说，
 *    就是线程调用了condition.await()的总次数。
 * Created by Administrator on 2016/11/21.
 */
public class Main3 {
    public static void main(String[] args) throws InterruptedException {
        ServiceClass3 sc = new ServiceClass3();
        for(int i = 0; i < 10; i++) {
            ThreadSC3 a = new ThreadSC3(sc);
            a.start();
        }
        Thread.sleep(2000);

        System.out.println("getWaitQueueLength()="+sc.getWaitSize());
    }
}
